package com.clgk.wechatmall.manage;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

import com.clgk.wechatmall.common.util.HttpUtils;

public class ManageApi {

	
	
	@Test
	public void adminLogin(){
		String url = "http://localhost:8080/lampserver/managerApi/api/adminLogin";
		Map<String, String> params = new HashMap<String, String>();
		params.put("account", "ak-hb");
		params.put("password", "14e1b600b1fd579f47433b88e8d85291");
		try {
			HttpUtils http = new HttpUtils();
			String res = http.post(url, params);
			System.out.println(res);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
